<?php echo $html->css("screen/staff_list_staff.css");?>
<?php echo $this->element('menu', array("active" => "9.b"));?>
<ul class="breadcrumb">
	<li>
          <?php echo $this->Html->link(__('Companies  ', true), array('controller' => 'companies','action' => 'index'), array('class'=>'fist_link'));?>
        </li>
        <li>
          <a href="#" ><?php __('Company') ?>  </a>
    </li>
 </ul>
 <script type="text/javascript">	  
	$(document).ready(function(){		
		$("#CompanyAdminEditForm").validate({
			rules: {
				'data[Company][name]': {
					required: true,
					minlength: 3
				},
				'data[Company][address]': {
					required: true,
					minlength: 3
				}
			},
			messages: {			
				'data[Company][name]': {
					required: "Please enter name",
					minlength: "This name must consist of at least 3 characters",					
				},			
				'data[Company][address]': {
					required: "Please enter address",
					minlength: "This address must consist of at least 3 characters"
				}
			}
		});	
	});
</script>
<div id="content" class="staffs form">	
        <fieldset class="form">
		<?php echo $this->Form->create('Company');?>			
                 	<?php
		echo $this->Form->input('name', array('class'=>'required'));
		echo $this->Form->input('address', array('class'=>'required'));
		echo $this->Form->input('city');
		echo $this->Form->input('state');
		echo $this->Form->input('zipcode');
		echo $this->Form->input('phone');
	?>
	<div class="clear">
		<?php echo $form->submit(__('Add', true),array('class'=>'bt bt_save','div'=>false));?>
	</div>
	 <?php echo $this->Form->end();?>
        </fieldset>		
     </div>